﻿namespace Yuebon.Security.Models;

/// <summary>
/// 数据字典选项明细表，数据实体对象
/// </summary>
[SugarTable("Sys_Items_Detail", "数据字典选项明细表")]
[Serializable]
public class ItemsDetail: BaseEntity, ICreationAudited, IModificationAudited, IDeleteAudited
{ 

    #region Property Members
    /// <summary>
    /// 主表主键
    /// </summary>
    [MaxLength(50)]
    [SugarColumn(ColumnDescription= "主表主键")]
    public virtual long ItemId { get; set; }

    /// <summary>
    /// 父级
    /// </summary>
    [MaxLength(50)]
    [SugarColumn(ColumnDescription= "父级")]
    public virtual long ParentId { get; set; }

    /// <summary>
    /// 编码
    /// </summary>
    [MaxLength(50)]
    [SugarColumn(ColumnDescription= "编码")]
    public virtual string? ItemCode { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [MaxLength(50)]
    [SugarColumn(ColumnDescription= "名称")]
    public virtual string? ItemName { get; set; }

    /// <summary>
    /// 简拼
    /// </summary>
    [MaxLength(50)]
    [SugarColumn(ColumnDescription= "简拼")]
    public virtual string? SimpleSpelling { get; set; }

    /// <summary>
    /// 默认
    /// </summary>
    [SugarColumn(ColumnDescription= "默认")]
    public virtual bool? IsDefault { get; set; }

    /// <summary>
    /// 层次
    /// </summary>
    [SugarColumn(ColumnDescription= "层次")]
    public virtual int? Layers { get; set; }

    /// <summary>
    /// 排序码
    /// </summary>
    [SugarColumn(ColumnDescription= "排序码")]
    public virtual int? SortCode { get; set; }


    /// <summary>
    /// 描述
    /// </summary>
    [MaxLength(500)]
    [SugarColumn(ColumnDescription= "主表主键")]
    public virtual string? Description { get; set; }

    /// <summary>
    /// 删除标志
    /// </summary>
    [SugarColumn(ColumnDescription= "删除标志")]
    public virtual bool? DeleteMark { get; set; }

    /// <summary>
    /// 有效标志
    /// </summary>
    [SugarColumn(ColumnDescription= "有效标志")]
    public virtual bool EnabledMark { get; set; }

    /// <summary>
    /// 创建日期
    /// </summary>
    [SugarColumn(ColumnDescription= "创建日期")]
    public virtual DateTime? CreatorTime { get; set; }

    /// <summary>
    /// 创建用户主键
    /// </summary>
    [MaxLength(50)]
    [SugarColumn(ColumnDescription= "创建用户主键")]
    public virtual long? CreatorUserId { get; set; }

    /// <summary>
    /// 最后修改时间
    /// </summary>
    [SugarColumn(ColumnDescription= "最后修改时间")]
    public virtual DateTime? LastModifyTime { get; set; }

    /// <summary>
    /// 最后修改用户
    /// </summary>
    [MaxLength(50)]
    [SugarColumn(ColumnDescription= "最后修改用户")]
    public virtual long? LastModifyUserId { get; set; }

    /// <summary>
    /// 删除时间
    /// </summary>
    [SugarColumn(ColumnDescription= "删除时间")]
    public virtual DateTime? DeleteTime { get; set; }

    /// <summary>
    /// 删除用户
    /// </summary>
    [MaxLength(50)]
    [SugarColumn(ColumnDescription= "删除用户")]
    public virtual long? DeleteUserId { get; set; }
    #endregion

}